In the normal cell, protein molecules are assembled to the specification of RNA plans. These are working copies of plans, run off from the DNA masters held in the cell's precious archives. But it is theoretically possible to build a special machine - a protein molecule like the rest of the cellular machines - that nuns off RNA copies from other RNA copies. Such a machine is called an RNA-replicase molecule. The bacterial cell itself normally has no use for these machines, and doesn't build any. But since the replicase is just a protein molecule like any other, the versatile protein-building machines of the bacterial cell can easily turn to building them, just as the machine tools in a car factory can quickly be turned over in time of war to making munitions: all they need is to be fed the right blueprints. This is where the virus comes in.
The business part of the virus is an RNA plan. Superficially it is indistinguishable from any of the other RNA working blueprints that are floating around, after being rum off the bacterium's DNA master. But if you read the small print of the viral RNA you will find something devilish written there. The letters spell out a plan for making RNA-replicase: for making machines that make more copies of the very same RNA plans, that make more machines that make more copies of the plans, that make more . . .
So the factory is hijacked by these self-interested blueprints. In a sense it was crying out to be hijacked. If you fill your factory with machines so sophisticated that they can make anything that any blueprint tells them to make, it is hardly surprising if sooner or later a blueprint arises that tells these machines to make copies of itself. The factory fills up with more and more of these rogue machines, each churning out rogue blueprints for making more machines that will make more of themselves. Finally, the unfortunate bacterium bursts and releases millions of viruses that infect new bacteria. So much for the normal life cycle of the virus in nature.